package org.proxycine.gestsalles.services;

import java.util.List;

import org.proxycine.gestsalles.model.dao.SalleDao;
import org.proxycine.gestsalles.model.entities.Salle;

public class SalleService {
	
	private static SalleService instance;
	
	private SalleService() {
		instance = this;
	}
	
	public static SalleService getInstance() {
		if(instance == null)
			instance = new SalleService();
		
		return instance;
	}
	
	public List<Salle> getScreensFromACinema(String login)
	{
		return SalleDao.getInstance().getScreensFromACinema(login);
	}
	
	public Salle getSalleFromLogin(String loginGerant, int numero_salle)
	{
		return SalleDao.getInstance().getSalleFromLogin(loginGerant, numero_salle);
	}
	
	public Salle getSalleFromId(int id_salle)
	{
		return SalleDao.getInstance().getSalleFromId(id_salle);
	}
}
